#ifndef AFFICHAGEPRINCIPAL_HPP
#define AFFICHAGEPRINCIPAL_HPP

#include <QtGui/QWidget>

#include <QtCore/QHash>

class QLayout;
class TraitementRequete;
class QTabWidget;

class AffichagePrincipal : public QWidget
{
  Q_OBJECT
public:
  AffichagePrincipal( QWidget * parent = 0 );
  ~AffichagePrincipal();
public slots:
  void chargerReglages();
  void sauverReglages() const;
protected slots:
  void recupereTexte( const QString& texte );
  void telechargeFichier( const int& numero );
  void creationTabs();
protected:
  QTabWidget * Collection;
  QHash< QString, QWidget* > Composants;
  QList< QLayout * > Agencements;
  TraitementRequete * TestTemporaire;
private:
  void creerUI();
  QString nomAgence() const;
  QString passAPI() const;
signals:
  void majFinie();
  void infosConnectionOK();
};

#endif // AFFICHAGEPRINCIPAL_HPP
